<?php

class BlogPeer extends BaseBlogPeer
{
    public static function doSelectblog($blog){
        $c = new Criteria();
        $c->addJoin(BlogPeer::GROUPE,sfGuardUserGroupPeer::GROUP_ID);
        $c->add(sfGuardUserGroupPeer::GROUP_ID,$blog);

        return parent::doSelectOne($c);
    }
}
